package com.test.demos.util;

public class CodeEntity {
	private Integer code;
	private String message;
	private String result;
	
	public CodeEntity(Integer code, int result){
		this.code = code;
		if(result==1){
			this.result = "success";
		}else{
			this.result = "fail";
		}
	}
	
	public CodeEntity(Integer code, int result, String message){
		this.code = code;
		this.message = message;
		if(result==1){
			this.result = "success";
		}else{
			this.result = "fail";
		}
	}

	public String getMessage() {
		return message;
	}
	

	public String getResult() {
		return result;
	}

	public Integer getCode() {
		return code;
	}
	
}
